package com.zondy.mapgis.domain.psmap;

import io.swagger.v3.oas.annotations.media.Schema;

@Schema(
   name = "角色和应用微件关联"
)
public class AppRoleStoreWidget {
   @Schema(
      description = "角色ID"
   )
   private Long roleId;
   @Schema(
      description = "应用微件ID"
   )
   private String appWidgetId;

   public Long getRoleId() {
      return this.roleId;
   }

   public String getAppWidgetId() {
      return this.appWidgetId;
   }

   public AppRoleStoreWidget setRoleId(Long roleId) {
      this.roleId = roleId;
      return this;
   }

   public AppRoleStoreWidget setAppWidgetId(String appWidgetId) {
      this.appWidgetId = appWidgetId;
      return this;
   }

   public boolean equals(Object o) {
      if (o == this) {
         return true;
      } else if (!(o instanceof AppRoleStoreWidget)) {
         return false;
      } else {
         AppRoleStoreWidget other = (AppRoleStoreWidget)o;
         if (!other.canEqual(this)) {
            return false;
         } else {
            Object this$roleId = this.getRoleId();
            Object other$roleId = other.getRoleId();
            if (this$roleId == null) {
               if (other$roleId != null) {
                  return false;
               }
            } else if (!this$roleId.equals(other$roleId)) {
               return false;
            }

            Object this$appWidgetId = this.getAppWidgetId();
            Object other$appWidgetId = other.getAppWidgetId();
            if (this$appWidgetId == null) {
               if (other$appWidgetId != null) {
                  return false;
               }
            } else if (!this$appWidgetId.equals(other$appWidgetId)) {
               return false;
            }

            return true;
         }
      }
   }

   protected boolean canEqual(Object other) {
      return other instanceof AppRoleStoreWidget;
   }

   public int hashCode() {
      boolean PRIME = true;
      int result = 1;
      Object $roleId = this.getRoleId();
      result = result * 59 + ($roleId == null ? 43 : $roleId.hashCode());
      Object $appWidgetId = this.getAppWidgetId();
      result = result * 59 + ($appWidgetId == null ? 43 : $appWidgetId.hashCode());
      return result;
   }

   public String toString() {
      return "AppRoleStoreWidget(roleId=" + this.getRoleId() + ", appWidgetId=" + this.getAppWidgetId() + ")";
   }
}
